﻿<%@ Control Language="VB" AutoEventWireup="false" CodeFile="SearchHonorCert.ascx.vb"
    Inherits="WebForm_SearchHonorCert" %>
<%@ Register Namespace="My" TagPrefix="cc1" %>
<%@ Register src="~/WebForm/CommonControl/VolunteerQueryControl.ascx" tagname="VolunteerQueryControl" tagprefix="uc1" %>

<uc1:VolunteerQueryControl ID="VolunteerQueryControl1" runat="server" LoadOnStartUp="true" />


<table>
    <tr>
        <td>
            <asp:Button ID="btnQuery" runat="server" meta:resourcekey="btnQuery" />&nbsp;
            <asp:Button ID="btnHonorCertExport" runat="server" meta:resourcekey="btnHonorCertExport" />&nbsp;
        </td>
    </tr>
    </table>
    <asp:PlaceHolder ID="phUpload" runat="server">
    <hr />
    <table>
        <tr>
            <td align="left">
                <asp:Label ID="lblImport" runat="server" meta:resourcekey="lblImport"></asp:Label>
                <asp:FileUpload ID="fileupload1" runat="server" />
                <asp:Button ID="btnImport" runat="server" meta:resourcekey="btnImport" />
                <asp:HyperLink ID="hlinklExcelImport" Font-Size="12px" meta:resourcekey="hlinklExcelImport"  NavigateUrl="~/Downloads/SystemFile/ImportHonorCertExmple.xls" runat="server"></asp:HyperLink>
            </td>
        </tr>
        <tr>
            <td align="left">
            <div id="Table1" align=center style="OVERFLOW: auto; HEIGHT: 300px">
                <asp:GridView ID="gvError" runat="server" Visible="false" AutoGenerateColumns="true" SkinID="pager">
                </asp:GridView>
            </div>
            </td>
        </tr>
</table>
</asp:PlaceHolder>
<br />
<my:mygridview id="gv" runat="server" skinid="pager" allowsorting="True" allowhoverselect="false"
    meta:resourcekey="gv" allowhovereffect="True" mysortdirection="Ascending" DataKeyNames="ApplicationID">
    <Columns>
      <My:VolunteerIDBoundField DataField="VolunteerID" meta:resourcekey="bfVolunteerID"
            ReadOnly="True" SortExpression="v.VolunteerID" />
<%--        <asp:BoundField DataField="VolunteerID" meta:resourcekey="bfVolunteerID" SortExpression="v.VolunteerID" />
--%>        <asp:BoundField DataField="VolunteerName" meta:resourcekey="bfVolunteerName" SortExpression="v.VolunteerName" />
        <asp:BoundField DataField="WorkHour" meta:resourcekey="bfEffectiveWorkHour" SortExpression="vs.EffectiveWorkHour" >        
            <itemstyle horizontalalign="Center" />
        </asp:BoundField>
        <asp:BoundField DataField="ApplyWorkHour" meta:resourcekey="bfApplyWorkHour" SortExpression="ApplyWorkHour" >        
            <itemstyle horizontalalign="Center" />
        </asp:BoundField>               
        <asp:BoundField DataField="CreateDate" meta:resourcekey="bfCreateDate" SortExpression="hca.CreateDate" />
        <asp:BoundField DataField="EndDate" meta:resourcekey="bfEndDate" SortExpression="hc.EndDate" />
        <asp:TemplateField>
            <ItemTemplate>
                <asp:LinkButton id="lknSelect" runat="server" meta:resourcekey="lknSelect" CommandName="Select"></asp:LinkButton>          
            </ItemTemplate>            
        </asp:TemplateField>        
        <asp:TemplateField>
            <ItemTemplate>
                <asp:LinkButton id="lknCancel" runat="server" meta:resourcekey="lknCancel" CommandName="Cancel"></asp:LinkButton>
                            <ajaxToolkit:ConfirmButtonExtender ID="cbCancel" runat="server" TargetControlID="lknCancel"
                                meta:resourcekey="cbCancel">
                            </ajaxToolkit:ConfirmButtonExtender>                
            </ItemTemplate>            
        </asp:TemplateField>
<%--        <asp:BoundField DataField="Count1" SortExpression="wrd1.Count1" >
                    <itemstyle horizontalalign="Center" /> 
        </asp:BoundField>
        <asp:BoundField DataField="Count2" SortExpression="wrd2.Count2" >
                    <itemstyle horizontalalign="Center" />
        </asp:BoundField>
        <asp:BoundField DataField="Count3" SortExpression="wrd3.Count3" > 
                    <itemstyle horizontalalign="Center" />
        </asp:BoundField>--%>
    </Columns>
</my:mygridview>
